package com.yijianonghu.util.result;

/**
 *
 *error_code标识	描述说明<br/>
	100			POST参数不足！详见msg说明<br/>
	101			POST参数错误！详见msg说明<br/>
	102			密码错误！<br/>
	103			随机验证码错误！<br/>
	104			登陆账号被冻结！<br/>
	105			账号已经被注册！<br/>
	106			用户账号不存在！<br/>
	107			账户余额不足！<br/>
	108			昵称已经被注册！<br/>
	109			已进行过此操作，请勿重复！<br/>
	200			登陆令牌失效，请重新登陆！<br/>
	300			上传未知错误，请重试！<br/>
	301			上传文件大于5M的限制！<br/>
	302			上传文件类型不符合规范！<br/>
	304			没有选择上传文件！<br/>
	402			数量超过系统限制，禁止操作<br/>
	403			没有模块操作权限！<br/>
	404			即将访问的页面，已经不存在<br/>
	500			系统繁忙，请稍候重试！<br/>
	600			无法连接河马短信网关！<br/>
	601			河马短信网关已经欠费！<br/>
 */
public enum MessageCode {
	POST_PARAMETER_INSUFFICIENT(100, "POST参数不足！详见msg说明"),
	POST_PARAMETER_WRONG(101, "POST参数错误！详见msg说明"),
	
	PASSWORD_WRONG(102, "密码错误！"),
	
	CODE_WRONG(103, "随机验证码错误！"),
	
	ACCOUNT_FROZEN(104, "登陆账号被冻结！"),
	ACCOUNT_ALREADY_REGISTERED(105, "账号已经被注册！"),
	ACCOUNT_NOT_EXISTING(106, "用户账号不存在！"),
	ACCOUNT_BALANCE_INSUFFICIENT(107,"账户余额不足！"),
	ACCOUNT_NICKNAME_ALREADY_EXISTING(108,"昵称已经被注册！"),
	
	PROCESS_ALREADY_TAKEN(109, "已进行过此操作，请勿重复！"),
	
	LOGIN_TOKEN_INVALID(200, "登陆令牌失效，请重新登陆！"),
	
	UPLOAD_UNKNOWN_ERROR(300, "上传未知错误，请重试！"),
	UPLOAD_FILE_SIZE_EXCEEDED(301, "上传文件大于5M的限制！"),
	UPLOAD_FILE_FORMAT_INVALID(302, "上传文件类型不符合规范！"),
	UPLOAD_FILE_NONE_SELECTED(304, "没有选择上传文件！"),
	
	COUNT_EXCEEDED(402, "数量超过系统限制，禁止操作"),
	
	PRIVILEGE_NOT_GRANTED(403, "没有模块操作权限！"),
	
	PAGE_NOT_FOUND(404, "即将访问的页面，已经不存在"),
	
	SYSTEM_BUSY(500, "系统繁忙，请稍候重试！"),
	
	SMS_GATEWAY_NO_CONNECTION(600, "无法连接河马短信网关！"),
	SMS_GATEWAY_INSUFFICIENT_BALANCE(601, "河马短信网关已经欠费！"),
	
	COMMON_SUCCESS(1001,"操作成功！"),
	COMMON_INSUFFICIENT_SKU(1005,"商品库存不足！"),
	
	WX_NO_RESULT_RETURNED(2001,"无返回值！");
	
	private Integer error_code;
	private String description;
	
	private MessageCode(Integer error_code, String description){
		this.error_code=error_code;
		this.description=description;
	}
	
	public Integer getError_code() {
		return error_code;
	}
	public void setError_code(Integer error_code) {
		this.error_code = error_code;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
}
